package com.medical.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * 楼层索引表
 */
@Data
@TableName(value = "mar_floor_index")
public class FloorIndex {
    /**
     * 楼层id
     */
    @TableId(value = "floor_index_id", type = IdType.AUTO)
    private Integer floorIndexId;

    /**
     * 楼层索引名称
     */
    @TableField(value = "floor_index_name")
    private String floorIndexName;

    /**
     * 楼栋id
     */
    @TableField(value = "hospital_building_id")
    private Integer hospitalBuildingId;

    /**
     * 上级索引id
     */
    @TableField(value = "parent_id")
    private Integer parentId;

    /**
     * 创建时间
     */
    @TableField(value = "creat_time")
    private Date creatTime;

    /**
     * 状态 0 删除 1 可用
     */
    @TableField(value = "`state`")
    private Integer state;
}